﻿#region Creditos

/* Autor: Edilberto Sánchez Forero	*/
/* Email: esanchezfo@gmail.com		*/
/* Licencia: LGPL, Software Libre	*/
/* País: Colombia, Bogotá			*/

#endregion

#region Librerias

using System;
using System.Collections.Generic;

#endregion


namespace ESF.MSExcel.Structures
{
	[Serializable]
	public class XlsBCItem
	{
		#region Miembros
	
		public string ID;
		
		public XlsCell ContentCell; 
		// Valor de la relacion
		public List<XlsCell> Relations;
		// Valor del Tag
		public List<XlsCell> TagRelations;
		
		#endregion
		
		
		#region Constructor
		
		public XlsBCItem (XlsCell pIDCell, XlsCell pContentCell)
		{
			if (pIDCell != null)
			{
				ID = pIDCell.Content;
			}
			
			ContentCell = pContentCell;
			
			Relations = new List<XlsCell> ();
			
			TagRelations = new List<XlsCell> ();
		}
		
		#endregion
		
		
		#region Funciones

		public override string ToString()
		{
			return string.Format ("{0} ({1})", ContentCell.ToString (), ID);
		}
		
		#endregion
	}
}
